<html>
<head><meta charset="utf-8"><title>location of tests · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html">location of tests</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225368657"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225368657" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225368657">(Feb 05 2021 at 22:51)</a>:</h4>
<p>Now that we moved the library under <code>library/</code> and compiler source to under <code>compiler/</code> I'm always struggling to remember that the tests are under <code>src/</code>. It gets me _every_ time. Can we move that too? Somewhere?</p>



<a name="225371098"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225371098" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225371098">(Feb 05 2021 at 23:21)</a>:</h4>
<p><code>test/</code>?</p>



<a name="225371122"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225371122" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225371122">(Feb 05 2021 at 23:21)</a>:</h4>
<p>It is kind of weird that tests are under <code>src/</code></p>



<a name="225371180"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225371180" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225371180">(Feb 05 2021 at 23:22)</a>:</h4>
<p>Though for some reason it doesn't bother me that much. I guess I'm just used to it <span aria-label="shrug" class="emoji emoji-1f937" role="img" title="shrug">:shrug:</span></p>



<a name="225380320"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225380320" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225380320">(Feb 06 2021 at 02:04)</a>:</h4>
<p>do we still have more than 1000 tests in some directories, or has that been resolved?</p>



<a name="225380374"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225380374" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225380374">(Feb 06 2021 at 02:04)</a>:</h4>
<p>(I mention this only to wonder if we should take care of any other cleanup like that at the same time)</p>



<a name="225380827"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225380827" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225380827">(Feb 06 2021 at 02:13)</a>:</h4>
<p><span aria-label="grinning" class="emoji emoji-1f600" role="img" title="grinning">:grinning:</span> </p>
<div class="codehilite" data-code-language="Bash"><pre><span></span><code><span class="c1"># skips directories</span>
$ ls -p src/test/ui/issues/ <span class="p">|</span> grep -v / <span class="p">|</span> wc -l
    <span class="m">2589</span>
</code></pre></div>



<a name="225380849"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225380849" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225380849">(Feb 06 2021 at 02:13)</a>:</h4>
<p><span class="user-mention silent" data-user-id="217081">Yuki Okushi</span> added a tidy lint in the past couple months to add a hard limit on the number of tests in <code>src/test/ui/issues</code> and the <code>src/test/ui</code> root.</p>



<a name="225381070"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/location%20of%20tests/near/225381070" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/location.20of.20tests.html#225381070">(Feb 06 2021 at 02:19)</a>:</h4>
<p>Also a lot in the top-level:</p>
<div class="codehilite" data-code-language="Bash"><pre><span></span><code><span class="c1"># skips directories</span>
$ ls -p src/test/ui/ <span class="p">|</span> grep -v / <span class="p">|</span> wc -l
    <span class="m">1186</span>
</code></pre></div>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>